
a = [1,2,3,4,5,6,7]
b = [1,2,3,4,5,6,7]
prize_level = {1:-1,2:-1,3:3000,4:200,5:10,6:5}

def ifWin(my_lott,win_lott):
	blue = 0
	reds = 0

	my_blue = my_lott.pop()
	win_blue = win_lott.pop()
	
	if my_blue == win_blue:
		blue = 1
	for i in my_lott:
		for j in win_lott:
			if i == j:
				reds += 1
	prize_dict = {
(6,1):(1,-1),
(6,0):(2,-2),
(5,1):(3,3000),
(5,0):(4,200),(4,1):(4,200),
(4,0):(5,10),(3,1):(5,10),
(2,1):(6,5),(1,1):(6,5),(0,1):(6,5)
			}


	return(prize_dict[(reds,blue)])	


c = ifWin(a,b)

print(c)
			
